<div class="zs-ibox">
	<div id="CertificateInfo">
		<table class="zs-data-tab" width="100%">
			<tbody>
				<tr>
					<td class="text" style="width: 20%; text-align: left;">凭证名称：</td>
					<td colspan="3">
						<input type="text" class="zs-input" ng-model="certObj.CERTIFICATE_NAME">
					</td>
				</tr>
				<tr>
					<td class="text" style="width: 20%; text-align: left;">凭证类型</td>
					<td>
						<select	ng-model="certificate_type.type"
   							ng-options="y.type as y.name for y in certificate_type.list">
   						</select>
					</td>
					<td>创建人：</td>
					<td><label ng-bind="certObj.USER_NAME"></label></td>
				</tr>
				<tr>
					<td class="text" style="width: 20%; text-align: left;">备注</td>
					<td colspan="3">
					   <input type="text" class="zs-input" ng-model="certObj.REMARK">
					</td>
				</tr>
				<tr>
					<td colspan="4">
					   <input type="button" value="上传文件" style="float: middle;"	class="zs-btn"
							ng-click="uploadCertificateFile();">
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div id="CertificateDataInfo">
		<table class="zs-data-tab" width="100%">
			<tbody>
			<thead>
				<tr>
					<th class="head">序号</th>
					<th class="head">文件名称</th>
					<th class="head">操作</th>
				</tr>
			</thead>
			<tr ng-repeat="curRow in fileList">
				<td class="center"><label ng-bind="$index+1"></label></td>
				<td class="center">
					<label ng-bind="curRow.FILE_PATH|firstImgName"></label>
				</td>
				<td class="center" colspan="1">
					<a ng-click="downloadFile(curRow)">下载</a>&nbsp;
					<a ng-click="deleteCertificateFile(curRow)">删除</a>
				</td>
			</tr>
			<tr>
				<td colspan="3"  class="center"><input type="button" value="保存"
					style="float: middle;" class="zs-btn" ng-click="saveCertificate(certObj);"
					> <input
					type="button" value="取消" style="float: middle;"	class="zs-btn"
					 ng-click="closeCertWindow()"></td>
			</tr>
			</tbody>
		</table>
	</div>
</div>

